import request from '@/utils/request'

export function findMyDemand() {
  return request({
    url: '/demand/findMyDemand/1',
    method: 'get',
    
  })
}
//分页
export function findAllDemandpage(data) {
    return request({
      url: '/demand/findAllDemandpage',
      method: 'post',
      data
    })
  }

  export function findAllDemand() {
    return request({
      url: '/demand/findAllDemand/',
      method: 'get',
    })
  }


  export function addDemand(data) {
    return request({
      url: '/demand/addDemand',
      method: 'post',
      data
    })
  }

  export function deletedDemand(demandTableId) {
    return request({
      url: '/demand/deleteDemandByid/'+demandTableId,
      method: 'delete'
    })
  }